package cn.itcast.service.impl;

import cn.itcast.dao.DeptDao;
import cn.itcast.domain.Dept;
import cn.itcast.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public class DeptServiceImpl implements DeptService {


    private DeptDao deptDao;

    @Override
    public List<Dept> findByDeptId(Integer id) {
        return deptDao.findByDeptId(id);
    }

}
